package cn.itcast.zt.java8.model.decorator.demo1;

/**
 * 装饰者类
 * @author zhangtian105
 * @date 2023/4/20
 * @apiNote
 */
public abstract class Decorator implements Component {
    private Component component;

    public Decorator(Component component) {
        this.component = component;
    }

    @Override
    public void doSomeThing() {
        // 调用处理业务逻辑
        component.doSomeThing();
    }
}
